package com.org.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.org.bean.common.PlanInfo;
import com.org.dao.common.PlanInfoMapper;
import com.org.service.PlanService;

@Service("planService")
public class PlanServiceimpl implements PlanService {
	@Autowired
	private PlanInfoMapper planInfoMapper;

	@Override
	public List<PlanInfo> findAll() {
		// TODO Auto-generated method stub
		return planInfoMapper.findAll();
	}

	@Override
	public List<PlanInfo> findById(int planId) {
		// TODO Auto-generated method stub
		return planInfoMapper.findById(planId);
	}

	@Override
	public boolean addPlan(PlanInfo planInfo) {
		// TODO Auto-generated method stub
		return planInfoMapper.addPlan(planInfo);
	}

	@Override
	public boolean deletePlan(int planId) {
		// TODO Auto-generated method stub
		return planInfoMapper.deletePlan(planId);
	}

	@Override
	public boolean updatePlan(PlanInfo planInfo) {
		// TODO Auto-generated method stub
		return planInfoMapper.updatePlan(planInfo);
	}

	@Override
	public void updateMeasure(PlanInfo planInfo) {
		// TODO Auto-generated method stub
		 planInfoMapper.updateMeasure(planInfo);
	}

	@Override
	public List<PlanInfo> findMeasurebyId(int emerplanId) {
		// TODO Auto-generated method stub
		return planInfoMapper.findMeasurebyId(emerplanId);
	}

}
